package com.xuxiao.config;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author xuxiao
 */
public class SpringEventForError extends ApplicationEvent {

    private Throwable throwable;

    private String message;

    public SpringEventForError(Throwable throwable, String message){
        super(throwable);
        this.throwable = throwable;
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public SpringEventForError(Object source) {
        super(source);
    }
}
